{layout name="layout1" /}
<style>
    .layui-form-label{
        width: 160px;
    }
</style>
<div class="layui-col-md12">
    <div class="layui-fluid">
    <div class="layui-card">
        <div class="layui-card-body">
        <div class="layui-collapse like-layui-collapse" lay-accordion="" style="border:1px dashed #c4c4c4">
            <div class="layui-colla-item">
                <h2 class="layui-colla-title like-layui-colla-title" style="background-color: #fff">操作提示</h2>
                <div class="layui-colla-content layui-show">
                    <p>*这里可以配置钢瓶押金、租金、上楼费用等信息修改</p>
                    <p>*退瓶提示设置，我的押瓶操作退瓶显示给客户的信息。</p>
                </div>
            </div>
        </div>
        </div>
        <div class="layui-card-body" >
            <div class="layui-form" lay-filter="">
                <div class="layui-form-item">
                    <fieldset class="layui-elem-field layui-field-title">
                        <legend>钢瓶设置</legend>
                    </fieldset>
                </div>
                <div class="layui-form-item ">
                    <label class="layui-form-label"style="white-space: nowrap;">钢瓶押金：</label>
                    <div class="layui-input-inline">
                        <input type="text"name="bottle_deposit"   lay-verType="tips" autocomplete="off" value="{$config.bottle_deposit}" class="layui-input">
                        <div class=" layui-form-mid layui-word-aux" style="white-space: nowrap">钢瓶押金/瓶，用户下单结算扣除金额</div>
                    </div>
                    <div  class="layui-form-mid" >元</div>
                </div>
                <div class="layui-form-item ">
                    <label class="layui-form-label"style="white-space: nowrap;">钢瓶租金：</label>
                    <div class="layui-input-inline">
                        <input type="text"name="bottle_rent"   lay-verType="tips" autocomplete="off" value="{$config.bottle_rent}" class="layui-input">
                        <div class=" layui-form-mid layui-word-aux" style="white-space: nowrap">钢瓶租金/月，用户下单结算扣除金额</div>
                    </div>
                                        <div  class="layui-form-mid" >元</div>
                </div>
                <div class="layui-form-item ">
                    <label class="layui-form-label"style="white-space: nowrap;">上楼费用：</label>
                    <div class="layui-input-inline">
                        <input type="text"name="floor"   lay-verType="tips" autocomplete="off" value="{$config.floor}" class="layui-input">
                        <div class=" layui-form-mid layui-word-aux" style="white-space: nowrap">上楼费用/层设置，默认值3（2层开始收费），用户下单结算扣除金额</div>
                    </div>
                                        <div  class="layui-form-mid" >元</div>
                </div>
                <div class="layui-form-item ">
                    <label class="layui-form-label"style="white-space: nowrap;">退瓶提示：</label>
                    <div class="layui-input-inline">
                        <textarea style="min-height:100px;width:300px;line-height: 20px;" type="text" name="bottle_return"   lay-verType="tips" autocomplete="off" class="layui-input">{$config.bottle_return}</textarea>
                        <div class=" layui-form-mid layui-word-aux" style="white-space: nowrap">用户在我的押瓶 点击退瓶按钮-提示
                            1.送气人员配送气瓶到家时，现场办理退瓶。
                            2.携瓶到地址（供应站地址）办理退瓶，联系方式：13888889999</div>
                    </div>
                    <!--                    <div  class="layui-form-mid" >元可赠送1成长值</div>-->
                </div>


                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <button class="layui-btn {$view_theme_color}" lay-submit lay-filter="setmnp">确认</button>
                    </div>
                </div>
            </div>
        </div>
        </div>
    </div>
</div>
<script src="__PUBLIC__/static/common/js/area.js"></script>
<script>
    layui.config({
        version:"{$front_version}",
        base: '/static/plug/layui-admin/dist/layuiadmin/' //静态资源所在路径
    }).extend({
        index: 'lib/index' //主入口模块
    }).use(['index', 'table', 'like_area', 'like'], function(){
        var $ = layui.$
            ,like_area = layui.like_area
            ,like = layui.like
            ,form = layui.form;

        form.on('submit(setmnp)',function (data) {
            like.ajax({
                url: '{:url("ShopSetting/setTrading")}'//实际使用请改成服务端真实接口
                ,data: data.field
                ,type: 'post'
                ,success: function(res){
                    //登入成功的提示与跳转
                    layer.msg(res.msg, {
                        offset: '15px'
                        ,icon: 1
                        ,time: 1500
                    }, function(){
                        location.href = location.href; //后台主页
                    });
                }
            });
        });
    });

</script>